﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterClient.Master" AutoEventWireup="true" ValidateRequest="false" CodeFile="frmD_UserLoginManager.aspx.cs" Inherits="frmD_UserLoginManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">J-SYSTEM</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <script src="js/jquery.min.js" type="text/javascript" language="javascript"></script>
    <script src="js/Validation.js" type="text/javascript"></script>
     <style>
        .detail-admin-row .detail-admin-label
        {
        	width:100px;
        }
    </style>
   
    <script type="text/javascript" language="javascript">
        $(document).ready(function() {
            registerEnterEvent("enter", "<%= btn_検索.ClientID %>", 2);
        });		
    </script>

    <div class="maindiv1">
    
        <div class="detail-admin-row" style="height:15px; margin-top:20px;">
            <span class="detail-admin-label">企業 :</span>
            <asp:Label 
                ID="lbl_企業" 
                runat="server" 
                Text="lbl_企業" 
                Width="500px">
            </asp:Label>
        </div>

        <div class="detail-admin-row" style="height:18px">
            <span class="detail-admin-label">企業コード :</span>
            <asp:Label 
                ID="lbl_企業コード" 
                runat="server" 
                Text="lbl_企業コード">
            </asp:Label>
        </div>

        <div class="detail-admin-row">
            <span class="detail-admin-label">社員コード :</span>
            <asp:TextBox 
                ID="txt_社員コード" 
                runat="server"
                CssClass="textbox width2 enter"
                MaxLength="50">
            </asp:TextBox>
        </div>

        <div class="detail-admin-row">
            <span class="detail-admin-label">社員名 :</span>
            <asp:TextBox 
                ID="txt_社員名" 
                runat="server"　
                CssClass="textbox width2 enter" 
                MaxLength="500">
            </asp:TextBox>
        </div>

        <div class="detail-admin-row">
            <div style="text-align:right; width:278px;margin-top:5px">
                <asp:Button 
                    ID="btn_検索" 
                    runat="server" 
                    Text="検索" 
                    CssClass="button1" 
                    onclick="btn_検索_Click" />
            </div>
        </div>

        <div style="width:100%; clear:both; margin-top:20px; margin-left:20px; margin-bottom:10px;">
            <asp:GridView 
                id="grv_社員一覧" 
                runat="server"  
                ShowFooter="false" 
                AutoGenerateColumns="False" 
                AllowPaging="true"
                CssClass="mGrid"
                Width="740px"
                PagerStyle-CssClass="pgr" 
                AlternatingRowStyle-CssClass="alt"
                onpageindexchanging="grv_社員一覧_PageIndexChanging">
                    <Columns> 
                        <asp:BoundField 
                            HeaderText="社員コード" 
                            DataField="社員コード" 
                            HeaderStyle-Width="120px" 
                            ItemStyle-HorizontalAlign="Center" />
                            
                      <%--  <asp:BoundField 
                            HeaderText="社員名" 
                            DataField="社員名" 
                            HeaderStyle-Width="145px" 
                            ItemStyle-HorizontalAlign="Center"/>--%>
                            
                         <asp:TemplateField HeaderText="社員名" HeaderStyle-Width="160px">
                            <ItemTemplate>
                                 <div style="text-align:left;">
                                     <asp:Label
                                        runat="server"
                                        id="lbl_社員名"
                                        Text='<%#ShowTextLength(Eval("社員名").ToString())%>'
                                        Tooltip='<%#Eval("社員名")%>' />
                                 </div>
                            </ItemTemplate>
                        </asp:TemplateField>
                            
                        <asp:BoundField 
                            HeaderText="役職"  
                            DataField="役職" 
                            HeaderStyle-Width="110px" 
                            ItemStyle-HorizontalAlign="Center"/>
                            
                        <asp:BoundField 
                            HeaderText="生年月日"  
                            DataField="生年月日" 
                            dataformatstring="{0:yyyy年MM月dd日}"
                            HeaderStyle-Width="100px" 
                            ItemStyle-HorizontalAlign="Center"/>
                            
                        <asp:TemplateField 
                            HeaderStyle-Width="80px" 
                            ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>イベント</HeaderTemplate>
                            <ItemTemplate>
                                <asp:HyperLink 
                                    ID="HyperLink1"
                                    runat="server" 
                                    Text='<%#Convertイベント(Eval("イベント")) %>' 
                                    NavigateUrl='<%# "frmD_UserLoginEdit.aspx?id1=" + Eval("社員コード") +"&id2=" + 企業コード() + "&e=" + Event(Eval("イベント")) %>'     >
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                      </Columns>
                     
            </asp:GridView>
        </div>
        
        <div style="text-align:left; margin-top:20px; margin-left:18px">
            <asp:Button 
                ID="btn_戻る" 
                runat="server" 
                Text="戻る" 
                CssClass="button1" onclick="btn_戻る_Click"/>
        </div>
        
    </div>

</asp:Content>

